package cn.dengta.webapp.model;

import cn.dengta.common.model.ValueProxy;
import cn.dengta.common.model.ValueProxyImpl;
import lombok.Getter;

/**
 * 亲密度升温奖励
 */
@Getter
public enum UpgradeAward implements ValueProxyImpl<UpgradeAward, Integer> {
	BUBBLE(0,"聊天气泡", "https://oss.hholamet.com/internal/holamet/chat_bubble.png"),
	BACKDROP(1,"聊天背景", "https://oss.hholamet.com/internal/holamet/chat_backdrop.png"),
	;
	public final Integer value;
	public final String icon;
	final ValueProxy<UpgradeAward, Integer> proxy;

	UpgradeAward(Integer value, String label, String icon) {
		this.value = value;
		this.icon = icon;
		this.proxy = new ValueProxy<>(this, value, label);
	}

	public static UpgradeAward of(Integer value) {
		return BUBBLE.getValueOf(value);
	}
}
